package com.wxq.workpad.utils;

import android.provider.Settings;

/**
 * Created by Administrator on 2016/6/20.
 * http://blog.devwiki.net/index.php/2015/11/18/Android-Device-Code.html
 */
public class DeviceUtil {

    public static String getDeviceId() {
        String deviceId = "";
        //Q上无法获取到deviceId，所以使用android_id代替
        deviceId = Settings.Secure.getString(ApplicationUtils.getApp().getContentResolver(), Settings.Secure.ANDROID_ID);
        return deviceId;
    }
}
